//
//  JAGAdFullScreenVideo.h
//  JAGatherAdDemo
//
//  Created by Yc on 2022/4/25.
//

#import "JAGAdBaseAdapter.h"

NS_ASSUME_NONNULL_BEGIN

@class JAGAdFullScreenVideo;

@protocol JAGAdFullScreenVideoDelegate <NSObject>

@optional

/// 全视屏广告数据请求成功
- (void)JAGatherFullscreenVideoAdSuccessLoad:(JAGAdFullScreenVideo *)fullscreenVideo;

/// 全视屏广告数据请求失败
- (void)JAGatherFullscreenVideoAdFailLoad:(JAGAdFullScreenVideo *)fullscreenVideo error:(NSError *)error;

/// 全视屏广告渲染失败
- (void)JAGatherFullscreenVideoAdRenderFailed:(JAGAdFullScreenVideo *)fullscreenVideo error:(NSError *)error;

/// 全视屏广告曝光回调
- (void)JAGatherFullscreenVideoAdExposured:(JAGAdFullScreenVideo *)fullscreenVideo;

/// 全视屏广告曝光失败
- (void)JAGatherFullscreenVideoAdExposuredFailed:(JAGAdFullScreenVideo *)fullscreenVideo error:(NSError *)error;

/// 全视屏广告点击回调
- (void)JAGatherFullscreenVideoAdClicked:(JAGAdFullScreenVideo *)fullscreenVideo;

/// 全视屏广告页关闭
- (void)JAGatherFullscreenVideoAdClosed:(JAGAdFullScreenVideo *)fullscreenVideo;

/// 视频播放完成
- (void)JAGatherFullscreenVideoAdPlayFinish:(JAGAdFullScreenVideo *)fullscreenVideo;

@end

@interface JAGAdFullScreenVideo : JAGAdBaseAdapter

@property (nonatomic, weak) id<JAGAdFullScreenVideoDelegate> delegate;

/// 初始化方法
/// @param placementID 广告位
- (instancetype)initWithPlacementID:(NSString*)placementID;

/// 广告是否有效
- (BOOL)isValid;

@end

NS_ASSUME_NONNULL_END
